package com.dengdai.apputils.activitys;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import com.dengdai.applibrary.activitys.BaseTopIndicatorActivity;
import com.dengdai.apputils.fragments.TextListFragment;
import java.util.ArrayList;
import java.util.List;

/**
 * @说明
 * @作者 LY
 * @时间 16/5/26 11:25
 * @邮箱 2743569843@qq.com
 * @版权 Copyright(c) 2016 LY-版权所有
 * @备注
 */
public class TestTopIndicatorActivity extends BaseTopIndicatorActivity {

    @Override
    public FragmentManager getContentFragmentManager() {
        return getSupportFragmentManager();
    }

    @Override
    public List<String> getTopIndicator() {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add("标题" + (i + 1));
        }
        return list;
    }

    @Override
    public List<Fragment> getContentFragment() {
        List<Fragment> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(TextListFragment.newInstance());
        }
        return list;
    }

    @Override
    public boolean isShouldExpand() {
        return true;
    }
}
